<include file="Public:header" />

<script>
function del(id){
	if(id)
	{
	  if(confirm("Delete?")){ 
	    location="__URL__/del/page_id/"+id;
      }
	}
}
</script>
<div id="content">
	<!--  内容列表   -->
        <form name="form2" style="margin-bottom:0px;">
        <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px; margin-bottom:0px;">
            <tr bgcolor="#E7E7E7">
                <td height="30" colspan="10">
                    <span style="float:left; padding-top:3px; padding-left:5px;">Page List</span>
                    <span style="float:right;"><a href="__URL__/add">Add New Page</a></span>
                </td>
            </tr>
            <tr align="center" bgcolor="#FAFAF1" height="22">
                <th>Page ID</th>
                <th>Title</th>
                <th>Language</th>
                <th>Status</th>
                <th>Create Date</th>
                <th>Last Modify Date</th>
                <th>Option</th>
                <th>Language List</th>
            </tr>
            
            <foreach name="data.tb_page" item="vo" >
            <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
                <td>{$vo.page_id}</td>
                <td>{$vo.page_title}</td>
                <td>{$vo.page_lang}</td>
                <td>{$vo.page_status}</td>
                <td><?php if(!empty($vo["page_create"]))echo $vo["page_create"]; else echo "--";  ?></td>
                <td><?php if(!empty($vo["page_modify"]))echo $vo["page_modify"]; else echo "--"; ?></td>
                <td>
                    <a href="__URL__/update/page_id/{$vo.page_id}">Update</a> | 
                    <a href="javascript:del({$vo.page_id})">Delete</a>
                </td>
                <td><a target="_blank" href="{$SITE_URL}/admin.php?s=Page/lang_index/page_id/{$vo.page_id}">List Languages</a></td>
            </tr>
            </foreach>
            <tr bgcolor="#FAFAF1">
            <td height="28" colspan="10">
                {$msg.page}
            </td>
            </tr>
        </table>
    </form>
</div>
<include file="Public:footer" />